# -*- coding:utf-8 -*-#
# -------------------------------------------------------------------------
# ProjectName:       zhcx-service-test
# FileName:          useforpython.py
# Author:            xun
# Date:              2024/7/26 11:10
# Description:
# --------------------------------------------------------------------------
from datetime import date,timedelta,datetime
date1 = date.today()
print(date1-date(day=7,year=date.today().year,month=date.today().month))
# print(date.today().year)
print(date1)
now = datetime.now()
seven_days_ago = now - timedelta(days=7)
print(seven_days_ago.strftime('%Y-%m-%d'))


str1 = '111'
if str1:
    print('空了就不打印')
else:
    print('空了就打印')